<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <link rel="shortcut icon" href="assets/ico/favicon.png">
        <title><?php echo yii::app()->name;?></title>
        <link href="<?php echo DIR_WEB;?>dist/css/bootstrap.css" rel="stylesheet">
        <!--[if lt IE 9]>
        <script src="<?php echo DIR_WEB;?>assets/js/html5shiv.js"></script>
        <script src="<?php echo DIR_WEB;?>assets/js/respond.min.js"></script>
        <![endif]-->
        <link href="<?php echo DIR_WEB;?>/css/base.css" rel="stylesheet">
    </head>
    <body>
        <?php echo $this->renderPartial("/layouts/header")?>
        <div class="container">
            <div class="page-header">
                <h1><strong>图片管理</strong></h1>
            </div>

            <div class="well well-sm">
                <div class="col-xs-12">
                    <a class="btn btn-primary btn-crawl">拉取信息</a>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <div class="pagination">
                        <a href="#" class="first" data-action="first">&laquo;</a>
                        <a href="#" class="previous" data-action="previous">&lsaquo;</a>
                        <input type="text" readonly="readonly" data-max-page="40" />
                        <a href="#" class="next" data-action="next">&rsaquo;</a>
                        <a href="#" class="last" data-action="last">&raquo;</a>
                    </div>
                </div>
            </div>
            <div class="row" id="imglist">
                
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <div class="pagination">
                        <a href="#" class="first" data-action="first">&laquo;</a>
                        <a href="#" class="previous" data-action="previous">&lsaquo;</a>
                        <input type="text" readonly="readonly" data-max-page="40" />
                        <a href="#" class="next" data-action="next">&rsaquo;</a>
                        <a href="#" class="last" data-action="last">&raquo;</a>
                    </div>
                </div>
            </div>
        </div>

        <script type="text/html" id="pinTpl">
    
            <div class="col-xs-2 img" style="margin-bottom:10px;" data-id="<%=id%>">
                <div class="thumbnail">
                    <img src="<%=url%>" alt="<%=desc%>" width="<%=width%>" height="<%=height%>">
                    <div class="caption">
                        <!--<h3>Thumbnail label</h3>-->
                        <p style="height:30px;overflow-y: hidden"><%=desc%></p>
                        <div>
                            <span class="btn btn-default btn-xs btn-tagdel" data-id="">甜点</span>
                            <span class="btn btn-default btn-xs btn-tagdel" data-id="">美酒</span>
                            <span class="btn btn-default btn-xs btn-tagdel" data-id="">主食</span>
                            <span class="btn btn-info btn-xs btn-tagadd" role="button">＋</span>
                        </div>
                        <p>
                        <div class="btn-group">
                            <a class="btn btn-primary btn-xs btn-publish" role="button">发布</a>
                            <a class="btn btn-default btn-xs btn-delete" role="button">删除</a>
                            <a class="btn btn-default btn-xs" role="button" href="<%=refer%>" target="_blank">原链</a>
                        </div>
                        </p>
                    </div>
                </div>
            </div>

        </script>
        <script src="<?php echo DIR_WEB;?>dist/js/jquery.js"></script>
        <script src="<?php echo DIR_WEB;?>dist/js/bootstrap.min.js"></script>
        <script src="<?php echo DIR_WEB;?>dist/js/holder.js"></script>
        <script src="<?php echo DIR_WEB;?>dist/js/underscore-min.js"></script>
        <script src="<?php echo DIR_WEB;?>dist/js/backbone-min.js"></script>
        <script src="<?php echo DIR_WEB;?>dist/js/template.js"></script>
        <script src="<?php echo DIR_WEB;?>dist/js/jquery.jqpagination.min.js"></script>
        <script src="<?php echo DIR_WEB;?>dist/js/jquery.masonry.min.js"></script>
        
        <script src="<?php echo DIR_WEB;?>js/image-admin.js"></script>

    </body>
</html>